package com.fengycx.autoconfigure;
import com.fengycx.properties.FileUploadProp;
import com.fengycx.templeate.FileUploadTemplate;
import com.qcloud.cos.COSClient;
import com.qcloud.cos.ClientConfig;
import com.qcloud.cos.auth.BasicCOSCredentials;
import com.qcloud.cos.auth.COSCredentials;
import com.qcloud.cos.http.HttpProtocol;
import com.qcloud.cos.model.PutObjectRequest;
import com.qcloud.cos.model.PutObjectResult;
import com.qcloud.cos.model.ciModel.auditing.ImageAuditingRequest;
import com.qcloud.cos.region.Region;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.io.File;

@Configuration
@EnableConfigurationProperties({FileUploadProp.class})
public class FileAutoConfiguration {

    @Bean
    public FileUploadTemplate fileUploadTemplates(FileUploadProp fileUploadProp){
        return new FileUploadTemplate(fileUploadProp);
    }


}
